﻿using Shop.Model.DB;
using Shop.Model.SpecGroup;
using Shop.RemoteModel.GoodsSpec.Model;

namespace Shop.Repository
{
    public interface ISpecGroupRepository : IShopBaseRepository<DBGoodsSpecGroup, long>
    {
        SpecGroupDto[] Gets (long groupId);
        GoodsSpecGroup[] Sync (long goodsId, SpecGroup[] groups);

        long Add (SpecGroupAddDto datum);
        void SetName (long id, string name);
        void Delete (long id, long[] specId);
        void SetSort (Dictionary<long, int> sorts);
    }
}